from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
import settings
admin.autodiscover()

from views import index

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'MDC.views.home', name='home'),
    # url(r'^MDC/', include('MDC.foo.urls')),
    url(r'^blog/', include('MDC.blog.urls')),
    #url(r'^$', index),
    
    # Main URL Settings here:
    url(r'^cartoon/', include('MDC.CARTOON.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    #url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    #url(r'^admin/', include(admin.site.urls)),

    url(r'^media/(?P<path>.*)$',
        'django.views.static.serve',
            {'document_root': settings.MEDIA_ROOT}
    ),

    url(r'^resource/(?P<path>.*)$',
        'django.views.static.serve',
            {'document_root': settings.STATIC_ROOT})



)


urlpatterns += patterns('MDC.views',


    url(r'^$', 'index', name='uploadify'),
    url(r'^index/', 'index',name="uploadify_index"),
    url(r'^uploadify_script/', 'uploadify_script',name="uploadify_script"),

)